/**
 * 处理提交的表单数据，将空值去掉
 * @param {*} data
 */
export function dealFormData(data) {
    const o = {}
    Object.keys(data || {}).forEach(name => {
        const v = data[name]
        if (v === undefined || v === null || v === '' || v === 'undefined') {
            return
        }
        o[name] = v
    })
    return o
}
